package com.atguigu.bigdata.scala.chapter08

object Scala05_Match {

    def main(args: Array[String]): Unit = {
        // TODO - 模式匹配 - 简化使用
        // 模式匹配也可以简化
        val ( _, name, age ) = (1, "zhangsan", 30)

        //println(id + "," + name + "," + age)
       // println("," + name + "," + age)

        val map = Map(
            ("a", 1), ("b", 2), ("c", 3)
        )

        //for ( t <- map ) {
        for ( ("a", v) <- map ) {
            //println(k + "=" + v)
            //println(k + "=")
            //println(v)
        }
    }
}
